<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>flex布局</title>
  <style>
    .box {
      width: 200px;
      height: 200px;
      border: 2px solid #ccc;
      padding: 20px;
      display: flex;
      justify-content: space-between;
    }
    
    .item {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: lightblue;
    }

    .item:nth-child(2) {
      align-self: center;
    }

    .item:last-child {
      align-self: flex-end;
    }
  </style>

</head>

<body>

  <!-- flex实现一个三点的色子 -->

  <div class="box">
    <div class="item"></div>
    <div class="item"></div>
    <div class="item"></div>
  </div>


</body>

</html>